#pragma once
#include <ctime>

namespace RayTrace{

	class CTimer
	{
	public:
		CTimer(void):start(0),finish(0){};
		void Reset(){
			start=finish=clock();
		}
		double GetElapse(){
			finish=clock();
			return (double)(finish - start) / CLOCKS_PER_SEC;
		}

	protected:
		clock_t start,finish;


	};
}
